<template>
	<!-- 家政服务  预约 -->
	<view>
		<view class="head in bor">
			<view class="image">
				<image class="img" src="../../static/Home/make.png" mode=""></image>
			</view>
			<view class="text">
				<view class="txt">
					小张 177****6945
				</view>
				<view class="address">
					北京市 朝阳区 三元桥时间国际8号楼北区2654
				</view>
			</view>
			<view class="footer">
				<image class="img" src="../../static/Home/footer.png" mode=""></image>
			</view>
		</view>
		<!--   -->
		<view class="row bor in">
			<view class="">
				日常家居保洁3小时
			</view>
			<view class=" money">
				￥149 <text class="txt">/3小时</text>
			</view>
		</view>
		<!-- 标题 -->
		<view class="title in">
			选择预约方式
		</view>
		<!-- 自动匹配 -->
		<view class="row1 in bor">
			<view class="row1-1">
				<view class="">
					自动匹配 <text class="money">￥149</text>
				</view>
				<view class="btn" @click="btn">
					选择
				</view>
			</view>
			<view class="row1-1">
				<view class="">
					指定阿姨
				</view>
				<view class="btn1">
					<image class="img1" src="../../static/icon/iconRight.png" mode=""></image>
				</view>
			</view>
			<!-- 阿姨列表 -->
			<view class="lists">
				<scroll-view scroll-x="true">
					<view class="item show">
						<view class="flex">
							<image class="img1" src="../../static/shop/1595657049599668876.jpg" mode=""></image>
							<view class="text">
								<view class="txt">
									<!-- 名字 -->
									王阿姨 <text class="span">￥159</text>
								</view>
								<view class="txt1">
									从业5年 专业保障
								</view>
							</view>

						</view>
						<view class="border" @click="router">
							选择
						</view>
					</view>
					<view class="item show">
						<view class="flex">
							<image class="img1" src="../../static/shop/1595657049599668876.jpg" mode=""></image>
							<view class="text">
								<view class="txt">
									<!-- 名字 -->
									王叔叔 <text class="span">￥159</text>
								</view>
								<view class="txt1">
									从业5年 专业保障
								</view>
							</view>

						</view>
						<view class="border">
							选择
						</view>
					</view>
				</scroll-view>
			</view>
		</view>
		<!-- 支付方式 -->
		<view class="row2 in bor">
			<view class="tit">
				支付方式
				<view class="right">
					在线支付
				</view>
			</view>
			<!-- 支付方式标签 -->
			<view class="tag">
				<view class="zfb">
					支付宝支付
				</view>
				<view class="wx">
					微信支付
				</view>

			</view>
			<view class="tit1">
				红包
				<view class="red">
					暂无可用红包 <image class="img1" src="../../static/icon/iconRight.png" mode=""></image>
				</view>
			</view>
		</view>
		<!-- 支付 -->
		<view class="pay">
			<view class="left">
				$159.00
			</view>
			<view class="right" @click="btn1">
				预约并支付
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods:{
			btn(){
				uni.navigateTo({
					url:'../aunt/aunt'
				})
			},
			btn1(){
				uni.navigateTo({
					url:'../hint/hint'
				})
			},
			router(){
				uni.navigateTo({
					url:'../auntDetail/auntDetail'
				})
			}
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #F5F5F5;
	}
	.in {
		width: 90%;
		margin: auto;
		background-color: #fff;
	}

	.bor {
		box-shadow: 0px 0px 4px 2px #e2e2e2;
		border: 1px solid rgba(255, 0, 0, 0);
		border-radius: 15rpx;
	}

	.head {
		margin-top: 30rpx;
		height: 200rpx;
		display: flex;
		position: relative;

		.image {
			width: 20%;
			width: 60rpx;
			height: 60rpx;
			margin: 60rpx 30rpx;
		}

		.text {
			width: 80%;
			color: rgba(16, 16, 16, 100);
			font-size: 32rpx;
			text-align: left;

			.txt {
				font-weight: 550;
				margin-top: 30rpx;
			}

			.address {
				width: 90%;
				margin-top: 30rpx;
				color: rgba(121, 121, 121, 100);
				font-size: 26rpx;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
			}
		}

		.footer {
			width: 98%;
			height: 15rpx;
			position: absolute;
			bottom: 15rpx;
			left: 0;
			right: 0;
			margin: auto;
		}
	}

	.money {
		color: #FFA911;
	}

	.row {
		padding: 30rpx;
		margin-top: 60rpx;
		display: flex;
		justify-content: space-between;

		.txt {
			color: #999;
		}
	}

	.title {
		background-color: #F5F5F5;
		color: rgba(16, 16, 16, 100);
		font-size: 32rpx;
		text-align: left;
		margin-top: 40rpx;
	}

	// 
	.row1 {
		margin-top: 20rpx;
		padding: 10rpx;

		.row1-1 {
			display: flex;
			justify-content: space-between;
			line-height: 60rpx;
			margin-bottom: 10rpx;

			.btn {
				width: 140rpx;
				height: 60rpx;
				line-height: 60rpx;
				border-radius: 14px 14px 14px 14px;
				background-color: rgba(255, 196, 91, 100);
				color: rgba(16, 16, 16, 100);
				font-size: 14px;
				text-align: center;
				font-family: Arial;
				border: 1px solid rgba(255, 255, 255, 100);
			}

			.btn1 {
				width: 140rpx;
				height: 60rpx;
			}

			.img1 {
				margin-left: 65rpx;
				margin-top: 20rpx;
				width: 15rpx;
				height: 25rpx;
			}
		}

		scroll-view {
			width: 100%;
			white-space: nowrap;
			height: 220rpx;
		}

		.item {
			display: inline-block;
			margin-right: 20rpx;
			border: 2rpx solid #BFBFBF;
			border-radius: 10rpx;
			padding: 20rpx;

			.flex {

				display: flex;

				.text {
					margin-left: 20rpx;
				}

				.txt {
					justify-content: space-between;
				}

				.txt1 {
					margin-top: 20rpx;
					color: rgba(255, 149, 0, 100);
					font-size: 24rpx;
				}

				.img1 {
					width: 110rpx;
					height: 110rpx;
					border-radius: 15rpx;
				}

				.span {
					margin-left: 20rpx;
					color: #FF4400;
				}
			}

			.border {
				margin: auto;
				width: 130rpx;
				height: 55rpx;
				line-height: 55rpx;
				border-radius: 14px 14px 14px 14px;
				background-color: rgba(255, 255, 255, 100);
				color: rgba(16, 16, 16, 100);
				font-size: 26rpx;
				text-align: center;
				border: 1px solid rgba(255, 149, 0, 100);
			}
		}

	}

	.row2 {
		padding: 20rpx;
		margin-top: 50rpx;
		.right {
			float: right;
			color: rgba(16, 16, 16, 100);
			font-size: 32rpx;
			text-align: left;
			font-weight: 550;
		}

		.tit1 {
			margin-top: 20rpx;
			line-height: 40rpx;

			.red {
				float: right;
				color: #999;
				.img1 {
					margin-left: 10rpx;
					margin-top: 20rpx;
					width: 15rpx;
					height: 25rpx;
				}
			}
		}

		.tag {
			width: 100%;
			overflow: hidden;
			border-bottom: 2rpx solid #eee;
			padding: 20rpx 0;
			.wx {
				float: right;
				width: 120rpx;
				height: 44rpx;
				line-height: 40rpx;
				border-radius: 5px;
				background-color: rgba(37, 155, 36, 100);
				color: rgba(255, 255, 255, 100);
				font-size: 12px;
				text-align: center;
				font-family: Arial;
				border: 1px solid rgba(255, 255, 255, 100);
			}

			.zfb {
				float: right;
				margin-left: 10rpx;
				width: 140rpx;
				height: 44rpx;
				line-height: 40rpx;
				border-radius: 5px;
				background-color: rgba(255, 255, 255, 100);
				color: rgba(7, 129, 234, 100);
				font-size: 12px;
				text-align: center;
				font-family: Arial;
				border: 1px solid rgba(7, 129, 234, 100);
			}
		}
	}
	.pay{
		display: flex;
		justify-content: space-between;
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;		
		height:85rpx;
		text-align: center;
		border: 1px solid rgba(255, 255, 255, 100);
		background-color: #FFFFFF;
		padding: 5rpx 10rpx;
		box-sizing:size;
		.left{
			line-height: 80rpx;
			color: rgba(16, 16, 16, 100);
			font-size: 36rpx;
		}
		.right{
			width: 230rpx;
			line-height: 70rpx;
			height: 70rpx;
			border-radius: 5px;
			background-color: rgba(0, 183, 255, 100);
			color: rgba(255, 255, 255, 100);
			font-size: 28rpx;
			text-align: center;
			font-family: Arial;
			border: 1px solid rgba(255, 0, 0, 0);
		}
	}
</style>
